package com.hz.supermanage.bean;

public final class HtmlBean
{

	private static String contextPath;
	static String smoothBegin = "";
	static String smoothEnd = "";

	public HtmlBean()
	{
	}

	public static String getWorkTitle(String desc)
	{
		return "<table cellspacing=0 cellpadding=0 width=100%><tr><td class=title><img src=" + contextPath + "/parts/images/img/wa/arrow.gif align=absmiddle>&nbsp;<font id=title>" + desc + "</font></td></tr></table>";
	}

	public static String getWorkTitle(String desc, String img)
	{
		StringBuffer sb = new StringBuffer();
		sb.append("<table cellspacing=0 cellpadding=0 width=100%><tr><td class=title><img src=" + contextPath + "/parts/images/img/wt/");
		sb.append(img);
		sb.append(" align=absbottom>&nbsp;<font>");
		sb.append(desc);
		sb.append("</font></td></tr></table>");
		return sb.toString();
	}

	public static String getTableProperties()
	{
		return " border=0 class=formTable bordercolor=#ffffff cellspacing=0 cellpadding=2 id=COMP tt.impl=FormTable ";
	}

	public static String getTablePropertiesWithBorder()
	{
		return " border=1 class=formTable bordercolor=#cccccc  style='border-collapse:collapse'  cellspacing=0 cellpadding=3 id=COMP tt.impl=FormTable ";
	}

	public static String getTableProperties(String sBorder, String sCellpadding)
	{
		return " border=" + sBorder + " class=formTable bordercolor=#cccccc  style='border-collapse:collapse'  cellspacing=0 cellpadding=" + sCellpadding + " id=COMP tt.impl=FormTable ";
	}

	public static String getViewTableProperties()
	{
		return " border=1 class=formTable bordercolor=#cccccc  style='border-collapse:collapse'  cellspacing=0 cellpadding=3 id=COMP tt.impl=FormTable ";
	}

	public static String getListTableProperties()
	{
		return " border=0 class=listTable cellspacing=1 cellpadding=3";
	}
	public static String getSmoothBegin(){
		return smoothBegin;
	}
	public static String getSmoothEnd(){
		return smoothEnd;
	}

	static 
	{
		contextPath = "/pressystem";
		StringBuffer sb = new StringBuffer();
		sb.append("<table width=100% height='' border=0 cellpadding=0 cellspacing=0 bgcolor=#f8f8f8>");
		sb.append("<tr>");
		sb.append("<td style='height:3px; width:3px'><img src=" + contextPath + "/parts/images/img/gui/7.gif width=3 height=3></td>");
		sb.append("<td style='height:3px; background-image:url(" + contextPath + "/parts/images/img/gui/8.gif);background-repeat:repeat-x'></td>");
		sb.append("<td style='height:3px; width:3px'><img src=" + contextPath + "/parts/images/img/gui/9.gif width=3 height=3></td>");
		sb.append("</tr><tr>");
		sb.append("<td style='width:3px; background-image:url(" + contextPath + "/parts/images/img/gui/4.gif);background-repeat:repeat-y'></td>");
		sb.append("<td>");
		smoothBegin = sb.toString();
		sb = new StringBuffer();
		sb.append("</td>");
		sb.append("<td style='width:3px; background-image:url(" + contextPath + "/parts/images/img/gui/6.gif); background-repeat:repeat-y'></td>");
		sb.append("</tr><tr>");
		sb.append("<td style='height:3px; width:3px'><img src=" + contextPath + "/parts/images/img/gui/1.gif width=3 height=3></td>");
		sb.append("<td style='height:3px; background-image:url(" + contextPath + "/parts/images/img/gui/2.gif); background-repeat:repeat-x'></td>");
		sb.append("<td style='height:3px; width:3px'><img src=" + contextPath + "/parts/images/img/gui/3.gif width=3 height=3></td>");
		sb.append("</tr></table>");
		smoothEnd = sb.toString();
	}
	
}
